﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace PraxisRent.Entities
{
    public class TIPO_COMPROBANTE:BaseEntity
    {
        public TIPO_COMPROBANTE()
        {
            //this.COMPROBANTEs = new List<CREDITO>();
            this.ALQUILERs = new List<ALQUILER>();
        }

        public int Id { get; set; }

        [Display(Name = "Descripcion")]
        [Required(ErrorMessage = "La Descripción es requerida")]
        public string  Descripcion { get; set; }

        //public virtual ICollection<CREDITO> COMPROBANTEs { get; set; }
        public virtual ICollection<ALQUILER> ALQUILERs { get; set; }

        public override string ToString()
        {
            return Descripcion;
        }
    }
}
